#!/usr/bin/python
'''
Created on Nov 2, 2010

@author: linh-cl
'''
import sip
sip.setapi( 'QString', 2 )
from PyQt4.QtGui import QApplication 
from form.MainForm import MainForm
from pysqlite2 import dbapi2 as sqlite
import os

if __name__ == '__main__':

    import sys
    rpath = os.path.realpath( __file__ )
    ( rootdir, fname ) = os.path.split( rpath )
    app = QApplication( sys.argv )
    dbpath = os.path.join( rootdir, 'resource/allmynotes.db' )
    conn = sqlite.connect( dbpath )
    mainWin = MainForm( conn )
    mainWin.show()
    sys.exit( app.exec_() )
